package com.jdbcyw1.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jdbcbase.service.MenuService;
import com.jdbcyw1.module.User;
import com.jdbcyw1.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Resource
	private UserService userService;
	@RequestMapping("/getUserList")
	@ResponseBody
	public List<User> queryUser() {
		User u = new User();
		return userService.queryUser(u);
	}
	@RequestMapping("/getUser")
	@ResponseBody
	public User queryUserForOne() {
		String str = "";
		return userService.queryUserForOne(str);
	}
	
}
